package com.industrial.app.service.impl;


import com.industrial.app.domain.formal.FourGyPowerFormal;
import com.industrial.app.mapper.FourGyPowerFormalMapper;
import com.industrial.app.service.IFourGyPowerFormalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 4省工业用电Service业务层处理
 *
 * @author ruoyi
 * @date 2024-01-22
 */
@Service
public class FourGyPowerFormalServiceImpl implements IFourGyPowerFormalService
{
    @Autowired
    private FourGyPowerFormalMapper fourGyPowerFormalMapper;

    /**
     * 查询4省工业用电
     *
     * @param baseId 4省工业用电主键
     * @return 4省工业用电
     */
    @Override
    public FourGyPowerFormal selectFourGyPowerFormalByBaseId(String baseId)
    {
        return fourGyPowerFormalMapper.selectFourGyPowerFormalByBaseId(baseId);
    }

    /**
     * 查询4省工业用电列表
     *
     * @param fourGyPowerFormal 4省工业用电
     * @return 4省工业用电
     */
    @Override
    public List<FourGyPowerFormal> selectFourGyPowerFormalList(FourGyPowerFormal fourGyPowerFormal)
    {
        return fourGyPowerFormalMapper.selectFourGyPowerFormalList(fourGyPowerFormal);
    }

    /**
     * 新增4省工业用电
     *
     * @param fourGyPowerFormal 4省工业用电
     * @return 结果
     */
    @Override
    public int insertFourGyPowerFormal(FourGyPowerFormal fourGyPowerFormal)
    {
        return fourGyPowerFormalMapper.insertFourGyPowerFormal(fourGyPowerFormal);
    }

    /**
     * 修改4省工业用电
     *
     * @param fourGyPowerFormal 4省工业用电
     * @return 结果
     */
    @Override
    public int updateFourGyPowerFormal(FourGyPowerFormal fourGyPowerFormal)
    {
        return fourGyPowerFormalMapper.updateFourGyPowerFormal(fourGyPowerFormal);
    }

    /**
     * 批量删除4省工业用电
     *
     * @param baseIds 需要删除的4省工业用电主键
     * @return 结果
     */
    @Override
    public int deleteFourGyPowerFormalByBaseIds(String[] baseIds)
    {
        return fourGyPowerFormalMapper.deleteFourGyPowerFormalByBaseIds(baseIds);
    }

    /**
     * 删除4省工业用电信息
     *
     * @param baseId 4省工业用电主键
     * @return 结果
     */
    @Override
    public int deleteFourGyPowerFormalByBaseId(String baseId)
    {
        return fourGyPowerFormalMapper.deleteFourGyPowerFormalByBaseId(baseId);
    }
}
